﻿using System;
using MoonSharp.Interpreter;

// Token: 0x020002AE RID: 686
public class AISMGHitEvent : IEvent
{
	// Token: 0x06000F32 RID: 3890 RVA: 0x00073E9B File Offset: 0x0007209B
	public AISMGHitEvent(EntityBase shooter, EntityBase target)
	{
		this.shooter = shooter;
		this.target = target;
		this.code = EventCode.OnAIRaygunHit;
	}

	// Token: 0x06000F33 RID: 3891 RVA: 0x00073EBC File Offset: 0x000720BC
	public override DynValue GetLuaData()
	{
		if (this.data == null)
		{
			this.data = DynValue.NewPrimeTable();
			this.data.Table.Set("shooter", DynValue.FromObject(null, this.shooter.GetLuaEntity()));
			this.data.Table.Set("target", DynValue.FromObject(null, (!this.target) ? null : this.target.GetLuaEntity()));
		}
		return this.data;
	}

	// Token: 0x04001429 RID: 5161
	public EntityBase shooter;

	// Token: 0x0400142A RID: 5162
	public EntityBase target;
}
